import { configureStore } from '@reduxjs/toolkit';
import userReducer from './modules/user';

// 配置 Redux store 并导出
const store = configureStore({
  reducer: {
    user: userReducer,
  },
});

// 导出 store 类型
export type RootState = ReturnType<typeof store.getState>;
export type AppDispatch = typeof store.dispatch;

export default store;